{extend name="common/base" /}
<!--title-->
{block name="titlekeyword"}
<title>{$content}</title>

{/block}
<!--代码主要内容-->
{block name="main"}
<h6>内容</h6>

<h6>代码</h6>
<pre>
	&lt;script language="javascript"&gt;
	window.onload = function () {  //先加载页面内容 再加载js
		function Person() {
			this.name = "abc1";
			this.age = 900;
			this.abc = function (v1, v2) {
				window.alert(this.name + " " + this.age + " " + v1 + " " + v2);
			}
		}
		var p1 = new Person();
		p1.abc("北京", "天津");  //<b>实例化 调用类里的方法 传参</b>


	}
&lt;/script&gt;

	 </pre> {/block}
<!--底部js 在这里是js的实际代码区-->
{block name="footjs"}
<script language="javascript">
	window.onload = function () {  //先加载页面内容 再加载js
		function Person() {
			this.name = "abc1";
			this.age = 900;
			this.abc = function (v1, v2) {
				window.alert(this.name + " " + this.age + " " + v1 + " " + v2);
			}
		}
		var p1 = new Person();
		p1.abc("北京", "天津");  //调用实例化里的方法 传参


	}
</script> {/block}